﻿using System;
using System.Collections.Generic;

namespace CDDY_VehicleRepo
{
     ///<summary>
     ///实体类VehicleRepository
     ///</summary>
     public class VehicleRepository
     {
         private int __ID= 0;
         private string __vehiclemodel="" ;
         private string __sb="" ;
         private string __sccmc="" ;
         private string __sccdz="" ;
         private string __hdzkrs="" ;
         private string __bsxxs="" ;
         private string __qdfs="" ;
         private string __qdzw="" ;
         private string __cnzzxh="" ;
         private string __dcrl="" ;
         private string __zbzl="" ;
         private string __zzl="" ;
         private string __zj="" ;
         private string __pqgsl="" ;
         private string __pfjd="" ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public VehicleRepository()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("vehiclemodel",false);
             this.__Changed.Add("sb",false);
             this.__Changed.Add("sccmc",false);
             this.__Changed.Add("sccdz",false);
             this.__Changed.Add("hdzkrs",false);
             this.__Changed.Add("bsxxs",false);
             this.__Changed.Add("qdfs",false);
             this.__Changed.Add("qdzw",false);
             this.__Changed.Add("cnzzxh",false);
             this.__Changed.Add("dcrl",false);
             this.__Changed.Add("zbzl",false);
             this.__Changed.Add("zzl",false);
             this.__Changed.Add("zj",false);
             this.__Changed.Add("pqgsl",false);
             this.__Changed.Add("pfjd",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID = 0;
             this.__vehiclemodel = "" ;
             this.__sb = "" ;
             this.__sccmc = "" ;
             this.__sccdz = "" ;
             this.__hdzkrs = "" ;
             this.__bsxxs = "" ;
             this.__qdfs = "" ;
             this.__qdzw = "" ;
             this.__cnzzxh = "" ;
             this.__dcrl = "" ;
             this.__zbzl = "" ;
             this.__zzl = "" ;
             this.__zj = "" ;
             this.__pqgsl = "" ;
             this.__pfjd = "" ;
             this.__Changed["ID"] = false;
             this.__Changed["vehiclemodel"] = false;
             this.__Changed["sb"] = false;
             this.__Changed["sccmc"] = false;
             this.__Changed["sccdz"] = false;
             this.__Changed["hdzkrs"] = false;
             this.__Changed["bsxxs"] = false;
             this.__Changed["qdfs"] = false;
             this.__Changed["qdzw"] = false;
             this.__Changed["cnzzxh"] = false;
             this.__Changed["dcrl"] = false;
             this.__Changed["zbzl"] = false;
             this.__Changed["zzl"] = false;
             this.__Changed["zj"] = false;
             this.__Changed["pqgsl"] = false;
             this.__Changed["pfjd"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int _ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[车辆型号]的数据
         /// </summary>
         public string _vehiclemodel
         {
              set{ __vehiclemodel = value.Replace("'","’"); __Changed["vehiclemodel"] = true;}
              get{return __vehiclemodel;}
         }
         /// <summary>
         ///设置或获取类中的[商标]的数据
         /// </summary>
         public string _sb
         {
              set{ __sb = value.Replace("'","’"); __Changed["sb"] = true;}
              get{return __sb;}
         }
         /// <summary>
         ///设置或获取类中的[生产厂名称]的数据
         /// </summary>
         public string _sccmc
         {
              set{ __sccmc = value.Replace("'","’"); __Changed["sccmc"] = true;}
              get{return __sccmc;}
         }
         /// <summary>
         ///设置或获取类中的[生产厂地址]的数据
         /// </summary>
         public string _sccdz
         {
              set{ __sccdz = value.Replace("'","’"); __Changed["sccdz"] = true;}
              get{return __sccdz;}
         }
         /// <summary>
         ///设置或获取类中的[核定载客人数]的数据
         /// </summary>
         public string _hdzkrs
         {
              set{ __hdzkrs = value.Replace("'","’"); __Changed["hdzkrs"] = true;}
              get{return __hdzkrs;}
         }
         /// <summary>
         ///设置或获取类中的[变速箱型式]的数据
         /// </summary>
         public string _bsxxs
         {
              set{ __bsxxs = value.Replace("'","’"); __Changed["bsxxs"] = true;}
              get{return __bsxxs;}
         }
         /// <summary>
         ///设置或获取类中的[驱动方式]的数据
         /// </summary>
         public string _qdfs
         {
              set{ __qdfs = value.Replace("'","’"); __Changed["qdfs"] = true;}
              get{return __qdfs;}
         }
         /// <summary>
         ///设置或获取类中的[驱动轴位]的数据
         /// </summary>
         public string _qdzw
         {
              set{ __qdzw = value.Replace("'","’"); __Changed["qdzw"] = true;}
              get{return __qdzw;}
         }
         /// <summary>
         ///设置或获取类中的[储能装置型号]的数据
         /// </summary>
         public string _cnzzxh
         {
              set{ __cnzzxh = value.Replace("'","’"); __Changed["cnzzxh"] = true;}
              get{return __cnzzxh;}
         }
         /// <summary>
         ///设置或获取类中的[电池容量]的数据
         /// </summary>
         public string _dcrl
         {
              set{ __dcrl = value.Replace("'","’"); __Changed["dcrl"] = true;}
              get{return __dcrl;}
         }
         /// <summary>
         ///设置或获取类中的[整备质量]的数据
         /// </summary>
         public string _zbzl
         {
              set{ __zbzl = value.Replace("'","’"); __Changed["zbzl"] = true;}
              get{return __zbzl;}
         }
         /// <summary>
         ///设置或获取类中的[总质量]的数据
         /// </summary>
         public string _zzl
         {
              set{ __zzl = value.Replace("'","’"); __Changed["zzl"] = true;}
              get{return __zzl;}
         }
         /// <summary>
         ///设置或获取类中的[轴距]的数据
         /// </summary>
         public string _zj
         {
              set{ __zj = value.Replace("'","’"); __Changed["zj"] = true;}
              get{return __zj;}
         }
         /// <summary>
         ///设置或获取类中的[排气管数量]的数据
         /// </summary>
         public string _pqgsl
         {
              set{ __pqgsl = value.Replace("'","’"); __Changed["pqgsl"] = true;}
              get{return __pqgsl;}
         }
         /// <summary>
         ///设置或获取类中的[排放阶段]的数据
         /// </summary>
         public string _pfjd
         {
              set{ __pfjd = value.Replace("'","’"); __Changed["pfjd"] = true;}
              get{return __pfjd;}
         }
    }
}
